package io.github.junxworks.qt.commons.extractor;

import io.github.junxworks.qt.config.Params;

/**
 * 抽取上下文
 */
public class ExtractContext {

	/** 查询条件. */
	private String sql;

	/** 总查询结果大小.-1表示所有 */
	private int capacity = -1;

	/** 分页查询大小. */
	private int pageSize = 500;

	/** 发送事件名 */
	private String topic;

	/** 发送结果对象名 */
	private String objectName = Params.PARAM_EXTRACT_OBJ;

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public int getCapacity() {
		return capacity;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public String getObjectName() {
		return objectName;
	}

	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
